<?php
namespace app\admin\controller;

use houdunwang\view\View;
use houdunwang\request\Request;
use houdunwang\route\Controller;
use system\model\Admin;


class Entry extends Common
{
    public function __construct ()
    {
        $this->auth();
    }

    public function index()
    {
        return View::make();
    }
    public function changePassword(Admin $admin){
        if(IS_POST){
            return $admin->changePassword(Request::post());
        }
        return view();
    }
}